<?php
	require_once("../query/db_connection.php");
	
	
	$result = mysql_query("SELECT * FROM country WHERE countryname = '$_POST[country]'");
	
	$data = array();
	while( $row = mysql_fetch_array($result, MYSQL_ASSOC) ){
		$data[] = array(
			0 => $row['countryname'],
			1 => $row['countrycode']
		);
	}
	
	echo json_encode($data);
	flush();
?>